<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
    <title>Item Model Index</title>
</head>

<body>

<rad:useBean id="itemModelViewHelper"/>

<div id="portal-left-bar">
    <jsp:include page="../navigation/navigationMenu.jsp"/>
</div>

<div id="portal-content">
    <portal:box title="Item Models" style="width:800px">
        <display:table name="itemModelViewHelper.all"
                       excludedParams="method"
                       style="width:800px"
                       id="itemModel">
            <display:column title="Manufacturer Name">
                <c:out value="${itemModel.manufacturer.name}" />
            </display:column>
            <display:column title="Item Type">
                <c:out value="${itemModel.type.name}" />
            </display:column>
            <display:column title="Model Name">
                <c:out value="${itemModel.name}" />
            </display:column>
            <display:column title="Processor Speed">
                <c:out value="${itemModel.processorSpeed}" />
            </display:column>
            <display:column title="Screen Size">
                <c:out value="${itemModel.screenSize}" />
            </display:column>
            <display:column title="Actions">
                <html:link href="itemModelAction.do?method=editModel&modelId=${itemModel.id}">Edit</html:link>
            </display:column>

        </display:table>
        <html:link href="viewCreateModel.do">New Model</html:link>
        
    </portal:box>
</div>


</body>
</html>